﻿using System;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Extensions.DependencyInjection;

//using simu485.Data;

namespace simu485
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        //private C485Params c485_params = new C485Params();

        public MainWindow()
        {
            InitializeComponent();
            var serviceCollection = new ServiceCollection();
            serviceCollection.AddWpfBlazorWebView();
            // Kg Modify: 注册 BootstrapBlazor 服务
            serviceCollection.AddBootstrapBlazor();
            //// 注册配置服务，注入blazor
            //serviceCollection.AddSingleton<C485Params>(c485_params);
            Resources.Add("services", serviceCollection.BuildServiceProvider());
        }
    }
}